<?php

namespace bxkj_common\service;

use think\Model;

class Sevrice extends Model
{
    protected $error;//错误对象
    public function setError(string $message = '', $code = 1, $data = [])
    {
        $this->error = $message;
        return false;
    }

    public function getError()
    {
        return $this->error;
    }
}